package com.boarsoft.message.bean;

import java.io.Serializable;

public abstract class AbstractQueueInfo implements Serializable {
	private static final long serialVersionUID = 6438887148268652083L;
	
	public static final short STATUS_DISABLE = 0;
	public static final short STATUS_ENABLE = 1;
	public static final short STATUS_MONING = 2;

	/** broker */
	protected String broker;
	/** queue / topic id */
	protected String id;
	/**  */
	protected String catalog;
	/**  */
	protected String code;
	/** 队列中文名 */
	protected String name;
	/** 队列优先级（一次发送几个） */
	protected int priority = 50;
	/** 队列最大长度 */
	protected int capacity = Integer.MAX_VALUE;

	/** 为空表示纯内存队列 */
	protected String roller;
	/** */
	protected String memo;
	
	/** */
	protected short status = STATUS_DISABLE;

	public String getBroker() {
		return broker;
	}

	public void setBroker(String broker) {
		this.broker = broker;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCatalog() {
		return catalog;
	}

	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public int getCapacity() {
		return capacity;
	}

	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}

	public String getRoller() {
		return roller;
	}

	public void setRoller(String roller) {
		this.roller = roller;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}
}
